import request from '@/utils/request'

export function personCard(query) {
    return request({
        url: '/campus/person/personCard',
        method: 'get',
        params: query
    })
}
// 添加卡
export function addCard(query) {
    return request({
        url: '/campus/person/addCard',
        method: 'post',
        data: query
    })
}
// 挂失卡   
export function cardLoss(query) {
    return request({
        url: '/campus/person/cardLoss',
        method: 'post',
        data: query
    })
}
// 批量注销卡
export function batchCardCancellation(query) {
    return request({
        url: '/campus/person/batchCardCancellation',
        method: 'post',
        data: query
    })
}
// 换卡
export function cardReplacement(query) {
    return request({
        url: '/campus/person/cardReplacement',
        method: 'post',
        data: query
    })
}
// 查询人员卡记录
export function cardRecord(query) {
    return request({
        url: '/campus/person/cardRecord',
        method: 'post',
        data: query
    })
}
// 根据身份证号查询人员信息
export function getPersonByIdcard(query) {
    return request({
        url: '/campus/person/getPersonByIdcard',
        method: 'post',
        data: query
    })
}